package com.gym.converter;

import org.springframework.beans.BeanUtils;

import com.gym.form.user.RegisterForm;
import com.gym.pojo.user.UserDetailInfo;

public class RegisterForm2UserDetailInfoConvert {

	public static UserDetailInfo convert(RegisterForm registerForm) {
		UserDetailInfo userDetailInfo = new UserDetailInfo();
		BeanUtils.copyProperties(registerForm, userDetailInfo);
		return userDetailInfo;
	}

}
